﻿@model QuanLyCayXanh.Models.FamilyTree
@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Thêm dòng họ cây</h2>
@using (Html.BeginForm("Create", "FamilyTree", FormMethod.Post, new { @class = "pure-form pure-form-aligned" }))
{ 
    @Html.AntiForgeryToken()    

    <fieldset>        
        <div class="pure-control-group">
            @Html.LabelFor(m => m.Name)
            @Html.TextBoxFor(m => m.Name, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="pure-control-group">
            @Html.LabelFor(m => m.Code)
            @Html.TextBoxFor(m => m.Code, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Code)
        </div>
        <div class="pure-control-group">
            @Html.LabelFor(m => m.Image)
            @Html.TextBoxFor(m => m.Image, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Image)
        </div>
        <div class="pure-control-group">
            @Html.LabelFor(m => m.Color)
            @Html.TextBoxFor(m => m.Color, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Color)
        </div>
        <div class="pure-control-group">
            @Html.LabelFor(m => m.Description)
            @Html.TextAreaFor(m => m.Description, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        <div class="pure-control-group">
            @Html.LabelFor(m => m.Information)
            @Html.TextAreaFor(m => m.Information, new { @class = "pure-input-1-2" })
            @Html.ValidationMessageFor(model => model.Information)
        </div>

        <div class="pure-controls">
            <input type="submit" value="Thêm mới" class="pure-button pure-button-primary" />
            @Html.ActionLink("Quay lại danh sách", "Index", null, new { @class = "pure-button" })
        </div>
</fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}